//
//  ViewController.m
//  Jenkins_Demo
//
//  Created by vic on 22/5/15.
//  Copyright (c) 2015 hktv. All rights reserved.
//

#import "ViewController.h"
//#import <JSBadgeView.h>

@interface ViewController ()
@property (weak, nonatomic) IBOutlet UILabel *label;
//@property (nonatomic,strong) JSBadgeView *badgeView;

@property (weak, nonatomic) IBOutlet UILabel *label2;


@end

@implementation ViewController


- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
    #if MenchaoTest
    
    
    NSLog(@"COCOAPODS ...");
    
    
     self.label2.text = @"COCOAPODS MenchaoTest";
    #else
    self.label2.text = @"";
    
    #endif
    
    
    UIView* myView =[[ UIView alloc]initWithFrame:CGRectMake(10.0,110.0,100.0,40.0)];//这里创
    myView.backgroundColor = [UIColor greenColor];
    [self.view addSubview:myView];
    
#if defined(DEBUG)||defined(_DEBUG)
    UIView* myView2 =[[ UIView alloc]initWithFrame:CGRectMake(10.0,160.0,100.0,40.0)];//这里创
    myView2.backgroundColor = [UIColor redColor];
    [self.view addSubview:myView2];
    
    self.label.text = @"Debug版本";
#else
    self.label.text = @"Release版本";
#endif
    
    
//    
//    //1、在父控件（parentView）上显示，显示的位置TopRight
//    self.badgeView = [[JSBadgeView alloc]initWithParentView:myView alignment:JSBadgeViewAlignmentTopRight];
//    //2、如果显示的位置不对，可以自己调整，超爽啊！
//    // self.badgeView.badgePositionAdjustment = CGPointMake(-15, 10);
//    //3、如果多个的badge,可以设置tag要辨别
//    
//    //1、背景色
//    self.badgeView.badgeBackgroundColor = [UIColor redColor];
//    //2、没有反光面
//    self.badgeView.badgeOverlayColor = [UIColor clearColor];
//    //3、外圈的颜色，默认是白色
//    self.badgeView.badgeStrokeColor = [UIColor redColor];
//    
//    
//    /*****设置数字****/
//    //1、用字符
//    self.badgeView.badgeText = @"10";
//    //2、如果不显示就设置为空
//    self.badgeView.badgeText = @"俺是打工";
//    
//    //当更新数字时，最好刷新，不然由于frame固定的，数字为2位时，红圈变形
//    [self.badgeView setNeedsLayout];
//    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
